package org.dev.home.api

import org.dev.hi.library.restful.HiCall
import org.dev.hi.library.restful.annotation.GET
import org.dev.hi.library.restful.annotation.Path
import org.dev.home.model.Subcategory
import org.dev.home.model.TabCategory
/**
 * Author WenPing
 * CreateTime 2021/6/14.
 * Description:
 */
interface CategoryApi {
    @GET("category/categories")
    fun queryCategoryList(): HiCall<List<TabCategory>>


    @GET("category/subcategories/{categoryId}")
    fun querySubcategoryList(@Path("categoryId") categoryId: String): HiCall<List<Subcategory>>
}